# Kernel层 - 核心领域层
cmake_minimum_required(VERSION 3.16)

# 收集源文件
file(GLOB_RECURSE KERNEL_SOURCES "*.cpp")
file(GLOB_RECURSE KERNEL_HEADERS "*.h")

# 创建kernel库
add_library(kernel STATIC
    ${KERNEL_SOURCES}
    ${KERNEL_HEADERS}
)

# kernel层依赖Qt GUI for QColor and Core for basic types
target_link_libraries(kernel PUBLIC
    Qt6::Core
    Qt6::Gui  # Required for QColor in map_types.h and DTOs
)

# 包含目录
target_include_directories(kernel PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_SOURCE_DIR}/src
)